/** 
* All Rights Reserved , Copyright (C) 2023 , 青岛鼎信通讯股份有限公司
* 
* CbbPmDeliverableServiceAuto
* 项目交付物
* 
* 修改纪录
* 2023-06-24 版本：1.0 weixinmin 创建。
* @version 版本：1.0
* @author 作者：weixinmin
* 创建日期：2023-06-24
*/

package com.topscomm.mis.cbb.pm.base.service.impl.auto;

import com.topscomm.basic.IBasicDao;
import com.topscomm.mis.cbb.pm.base.dao.ICbbPmDeliverableDao;
import com.topscomm.mis.cbb.pm.base.pojo.CbbPmDeliverableEntity;
import com.topscomm.tap.common.DatacodeCache;
import java.util.Map;
import javax.annotation.Resource;


public class CbbPmDeliverableServiceAuto extends BaseService<CbbPmDeliverableEntity, ICbbPmDeliverableDao> {

	/**
	 * @author: weixinmin
	 * @date: 2023-06-24
	 * @param mapRow
	 * @description:设置字段显示值
	 * @modify:
	 */
	@Override
	public void setDispFields(Map<String, Object> mapRow, DatacodeCache datacodeCache) {
		String temp;
		if (mapRow.get("sourcemodule") != null) {
			temp = mapRow.get("sourcemodule").toString();
			mapRow.put("dispsourcemodule", datacodeCache.getValueDynamic("SourceModule", temp, "code", "name"));
		}
		if (mapRow.get("deliverabletype") != null) {
			temp = mapRow.get("deliverabletype").toString();
			mapRow.put("dispdeliverabletype", datacodeCache.getValueDynamic("DeliverableType", temp, "code", "name"));
		}
		if (mapRow.get("enabled") != null) {
			temp = mapRow.get("enabled").toString();
			mapRow.put("dispenabled", datacodeCache.getValueDynamic("CboYesNo", temp, "code", "name"));
		}

	}

	@Override
	@Resource(name = "cbbPmDeliverableDao")
	public void setDao(IBasicDao<CbbPmDeliverableEntity> dao) {		
		super.setDao(dao);
	}


}
